//功能脚本基类
export default class CScriptMgr{
    //逻辑脚本映射-[name or uuid]
    public static g_mapScripts:Map<string,any> = new Map();
    //组件脚本映射-[name or uuid]
    public static g_mapMounts:Map<string,any> = new Map();
    public name:string = null;
    constructor(name:string){
        CScriptMgr.g_mapScripts[name] = this;
        this.name = name;
    }

    //获取逻辑脚本引用
    public static getModule(name:string):any{
        return CScriptMgr.g_mapScripts[name];
    }

    //获取组件脚本引用
    public static getMount(name:string):any{
        return CScriptMgr.g_mapMounts[name];
    }

    //获取逻辑脚本引用
    public getModule(name:string):any{
        return CScriptMgr.getModule(name);
    }

    //获取组件脚本引用
    public getMount(uuid:string):any{
        return CScriptMgr.getMount(uuid);
    }

    //逻辑脚本派遣事件
    public dispatchs(data:any) {

    }
}